package com.wasion.gydpe.ice;

import java.util.concurrent.ConcurrentHashMap;

import CommProxy.CBasicParameter;

public class FrameHistory {
	private static ConcurrentHashMap<Integer, CBasicParameter> frameHistory = new ConcurrentHashMap<Integer, CBasicParameter>();

	public static ConcurrentHashMap<Integer, CBasicParameter> getFrameHistory() {
		return frameHistory;
	}

	public static void setFrameHistory(
			ConcurrentHashMap<Integer, CBasicParameter> frameHistory) {
		FrameHistory.frameHistory = frameHistory;
	}

	public static void add(CBasicParameter frame) {
		frameHistory.put(frame.seqID, frame);
	}

	public static void remove(CBasicParameter frame) {
		frameHistory.remove(frame.seqID);
	}

	public static CBasicParameter get(int seqID) {
		return frameHistory.get(seqID);
	}
}
